<h1><? __("Proizvodi"); ?></h1>
<?= $this->fetch("admin/table", array(
	"data" => $products,
	"pagination" => array(
		"link" => "/admin_product/index/%s/%s/%s",
		"page" => $page,
		"per_page" => ITEMS_PER_PAGE,
		"total" => $total
	),
	"sort" => array("field"=>$sortby,"direction"=>$sortdir),
	"header" => array(
		"id" => "Id",
		"code" => "Šifra",
		"name" => "Naziv",
		"price" => "Cena"
	),
	"type" => array(
		"id" => "id",
		"code" => "",
		"name" => "",
		"price" => "float"
	),
	"actions" => array(
		"edit" => "/admin_product/edit/%s",
		"delete" => "/admin_product/delete/%s",
		"create" => "/admin_product/edit"
	)
)); ?>